﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ked
{
    class DriveUtils
    {
        public static List<DriveInfo> GetFixedTypeDrive(DriveType type)
        {
            List<DriveInfo> infoList = new List<DriveInfo>();
            DriveInfo[] infos= DriveInfo.GetDrives();
            foreach (DriveInfo info in infos)
            {
                if (type==info.DriveType)
                {
                    infoList.Add(info);
                }
            }
            return infoList;
        }
    }
}
